from django.contrib import admin
from .models import myuser,myplaybook,mylog,myansible
# Register your models here.

class myuserAdmin(admin.ModelAdmin):
    list_display = ('username', 'password')
    search_fields = ('username', )
    ordering = ('-username', )
    list_per_page = 30

class myplaybookAdmin(admin.ModelAdmin):
    list_display = ('name', 'invent', 'playyml', 'forks', 'proxy')
    search_fields = ('name', 'invent' )
    ordering = ('-name', )
    list_per_page = 30

class mylogAdmin(admin.ModelAdmin):
    list_display = ('name', 'logpath', 'proxy', 'writeresult')
    search_fields = ('name', 'proxy' )
    ordering = ('-name', )
    list_per_page = 30

class myansibleAdmin(admin.ModelAdmin):
    list_display = ('name', 'invent', 'pattern', 'module', 'args', 'forks', 'proxy')
    search_fields = ('name', 'invent' )
    ordering = ('-name', )
    list_per_page = 30

admin.site.register(myuser, myuserAdmin)
admin.site.register(myplaybook, myplaybookAdmin)
admin.site.register(mylog,mylogAdmin)
admin.site.register(myansible,myansibleAdmin)